package net.pinnoocle.playdao.entity.shopPc.master;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author ye
 * @Description
 * @create 2021-11-09 14:11
 */
@Data
public class UpdateOpenScriptParams {

    @ApiModelProperty("开本id")
    @NotNull(message = "开本id不能为空")
    private String openId;

    @ApiModelProperty("剧本id")
    private String scriptId;

    @ApiModelProperty("主持人id")
    private String masterId;

    @ApiModelProperty("开局人数")
    private Integer scriptPeople;

    @ApiModelProperty("房间id")
    private String roomId;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty("是否加时 0 没加时 1 加时")
    private Integer isOverTime;

    @ApiModelProperty("加时时长（小时）")
    private Double overTime;

    @ApiModelProperty("是否困难 0 普通 1 困难")
    private Integer levelType;

    @ApiModelProperty("是否夜班 0 白班 1 夜班")
    private Integer isNight;

    @ApiModelProperty("是否加班 0 没加班 1 加班")
    private Integer overWork;

    @ApiModelProperty("收入")
    @NotNull(message = "请输入主持人本次开本收入")
    @DecimalMin(value = "1",message = "至少1元")
    private Double incomeAmount;
}
